def change(n):

    t = [100,50,20,5,1]
    m = [0 for _ in range(len(t))]

    for i,money in enumerate(t):
        m[i] = n // money
        n = n % money
    if n == 0:
        return m
    else:
        raise ValueError("找不开")


 
print(change(166))